# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1CloudIdentityInfo do
  @moduledoc """
  Cloud Identity information for the Cloud Channel Customer.

  ## Attributes

  *   `adminConsoleUri` (*type:* `String.t`, *default:* `nil`) - Output only. URI of Customer's Admin console dashboard.
  *   `alternateEmail` (*type:* `String.t`, *default:* `nil`) - The alternate email.
  *   `customerType` (*type:* `String.t`, *default:* `nil`) - CustomerType indicates verification type needed for using services.
  *   `eduData` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1EduData.t`, *default:* `nil`) - Edu information about the customer.
  *   `isDomainVerified` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the domain is verified. This field is not returned for a Customer's cloud_identity_info resource. Partners can use the domains.get() method of the Workspace SDK's Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in to track domain verification of their resolve Workspace customers.
  *   `languageCode` (*type:* `String.t`, *default:* `nil`) - Language code.
  *   `phoneNumber` (*type:* `String.t`, *default:* `nil`) - Phone number associated with the Cloud Identity.
  *   `primaryDomain` (*type:* `String.t`, *default:* `nil`) - Output only. The primary domain name.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :adminConsoleUri => String.t() | nil,
          :alternateEmail => String.t() | nil,
          :customerType => String.t() | nil,
          :eduData => GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1EduData.t() | nil,
          :isDomainVerified => boolean() | nil,
          :languageCode => String.t() | nil,
          :phoneNumber => String.t() | nil,
          :primaryDomain => String.t() | nil
        }

  field(:adminConsoleUri)
  field(:alternateEmail)
  field(:customerType)
  field(:eduData, as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1EduData)
  field(:isDomainVerified)
  field(:languageCode)
  field(:phoneNumber)
  field(:primaryDomain)
end

defimpl Poison.Decoder, for: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1CloudIdentityInfo do
  def decode(value, options) do
    GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1CloudIdentityInfo.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1CloudIdentityInfo do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
